import useReducer from './toolFunction/useReducer';
import exportPDF from './toolFunction/exportPDF';
import updateTool from './toolFunction/update';
import antiShake from './toolFunction/antiShake';
import stores from '../store/index';
import { v4 as uuid } from 'uuid';
const store = {
  getState: (key) => {
    if (key) return stores.getState()[key];
    return stores.getState();
  },
  dispatch: (type, payload) => {
    stores.dispatch({ type, payload });
  },
  subscribe: stores.subscribe,
};

export { store, useReducer, exportPDF, updateTool, antiShake, uuid };
